﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200010F RID: 271
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleRogueMagicModifierInfo : IMessage<BattleRogueMagicModifierInfo>, IMessage, IEquatable<BattleRogueMagicModifierInfo>, IDeepCloneable<BattleRogueMagicModifierInfo>, IBufferMessage
	{
		// Token: 0x170003A3 RID: 931
		// (get) Token: 0x06000C5F RID: 3167 RVA: 0x00024B71 File Offset: 0x00022D71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleRogueMagicModifierInfo> Parser
		{
			get
			{
				return BattleRogueMagicModifierInfo._parser;
			}
		}

		// Token: 0x170003A4 RID: 932
		// (get) Token: 0x06000C60 RID: 3168 RVA: 0x00024B78 File Offset: 0x00022D78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleRogueMagicModifierInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170003A5 RID: 933
		// (get) Token: 0x06000C61 RID: 3169 RVA: 0x00024B8A File Offset: 0x00022D8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleRogueMagicModifierInfo.Descriptor;
			}
		}

		// Token: 0x06000C62 RID: 3170 RVA: 0x00024B91 File Offset: 0x00022D91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicModifierInfo()
		{
		}

		// Token: 0x06000C63 RID: 3171 RVA: 0x00024B99 File Offset: 0x00022D99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicModifierInfo(BattleRogueMagicModifierInfo other) : this()
		{
			this.rogueMagicBattleConst_ = other.rogueMagicBattleConst_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000C64 RID: 3172 RVA: 0x00024BBE File Offset: 0x00022DBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicModifierInfo Clone()
		{
			return new BattleRogueMagicModifierInfo(this);
		}

		// Token: 0x170003A6 RID: 934
		// (get) Token: 0x06000C65 RID: 3173 RVA: 0x00024BC6 File Offset: 0x00022DC6
		// (set) Token: 0x06000C66 RID: 3174 RVA: 0x00024BCE File Offset: 0x00022DCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueMagicBattleConst
		{
			get
			{
				return this.rogueMagicBattleConst_;
			}
			set
			{
				this.rogueMagicBattleConst_ = value;
			}
		}

		// Token: 0x06000C67 RID: 3175 RVA: 0x00024BD7 File Offset: 0x00022DD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleRogueMagicModifierInfo);
		}

		// Token: 0x06000C68 RID: 3176 RVA: 0x00024BE5 File Offset: 0x00022DE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleRogueMagicModifierInfo other)
		{
			return other != null && (other == this || (this.RogueMagicBattleConst == other.RogueMagicBattleConst && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000C69 RID: 3177 RVA: 0x00024C14 File Offset: 0x00022E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RogueMagicBattleConst != 0U)
			{
				num ^= this.RogueMagicBattleConst.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000C6A RID: 3178 RVA: 0x00024C53 File Offset: 0x00022E53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000C6B RID: 3179 RVA: 0x00024C5B File Offset: 0x00022E5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000C6C RID: 3180 RVA: 0x00024C64 File Offset: 0x00022E64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RogueMagicBattleConst != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.RogueMagicBattleConst);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000C6D RID: 3181 RVA: 0x00024C98 File Offset: 0x00022E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RogueMagicBattleConst != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueMagicBattleConst);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000C6E RID: 3182 RVA: 0x00024CD6 File Offset: 0x00022ED6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleRogueMagicModifierInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RogueMagicBattleConst != 0U)
			{
				this.RogueMagicBattleConst = other.RogueMagicBattleConst;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000C6F RID: 3183 RVA: 0x00024D07 File Offset: 0x00022F07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000C70 RID: 3184 RVA: 0x00024D10 File Offset: 0x00022F10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.RogueMagicBattleConst = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400051E RID: 1310
		private static readonly MessageParser<BattleRogueMagicModifierInfo> _parser = new MessageParser<BattleRogueMagicModifierInfo>(() => new BattleRogueMagicModifierInfo());

		// Token: 0x0400051F RID: 1311
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000520 RID: 1312
		public const int RogueMagicBattleConstFieldNumber = 1;

		// Token: 0x04000521 RID: 1313
		private uint rogueMagicBattleConst_;
	}
}
